package com.cheng.mybatis02.entity;

import java.util.Date;

public class Book {
    private Integer id;
    private String bookName;
    private String bookAuthor;
    private Date createDate;

    public Book(Integer id, String bookName, String bookAuthor, Date createDate) {
        this.id = id;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.createDate = createDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}
